<template>
	<view>
		<view class="status_bar">
			<!-- 这里是状态栏 -->
		</view>
		<view class="navbar" :class="{ 'navbarboder':isborder }">
			<view class="left">
				<slot name="left"></slot>
			</view>
			<view class="center">
				<slot name="center"></slot>
			</view>
			<view class="right">
				<slot name="right"></slot>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		name: "navbar",
		props: {
			isborder: Boolean,
		},
		data() {
			return {

			};
		}
	}
</script>

<style scoped>
	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}

	.navbar {
		display: flex;
		height: 5vh;
		line-height: 5vh;
		text-align: center;
		background-color: #fff;
	}

	.navbarboder {
		box-shadow: 0 1px 1px rgba(100, 100, 100, .1);
	}

	.left,
	.right {
		width: 60px;
	}

	.center {
		flex: 1;
	}
</style>
